package designpatterns.test;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

@SpringBootApplication
public class MyApplication {
    public static void main(String[] args) throws IOException {
        SpringApplication app = new SpringApplication(MyApplication.class);
        Properties prop  = new Properties();
        prop.load(new FileInputStream("C:\\Users\\Administrator\\Desktop\\王术平\\design-pattern\\src\\main\\java\\designpatterns\\test\\application.yml"));
        app.setDefaultProperties(prop);
        app.run();
    }
}
